﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MIO.Client.Config
{
    public class IOClientConfig
    {
        private bool debug = true;
        private string serverIp = "127.0.0.1";
        private int serverPort = 15000;
        private int localPort = 0;
        private int ackTimeout = 3;
        private int maxReSendCount = 2;
        private bool autoReConnect=false;



        public string ServerIp
        {
            get
            {
                return serverIp;
            }

            set
            {
                serverIp = value;
            }
        }

        public int ServerPort
        {
            get
            {
                return serverPort;
            }

            set
            {
                serverPort = value;
            }
        }

        public int LocalPort
        {
            get
            {
                return localPort;
            }

            set
            {
                localPort = value;
            }
        }
    
        public int AckTimeout
        {
            get
            {
                return ackTimeout;
            }

            set
            {
                ackTimeout = value;
            }
        }

        public int MaxReSendCount
        {
            get
            {
                return maxReSendCount;
            }

            set
            {
                maxReSendCount = value;
            }
        }

        public bool AutoReConnect
        {
            get
            {
                return autoReConnect;
            }

            set
            {
                autoReConnect = value;
            }
        }

        public bool Debug
        {
            get
            {
                return debug;
            }

            set
            {
                debug = value;
            }
        }
    }
}
